84542872b8fd84fe2d27a64145eb8e86bacdc1e9,js/js.translator/src/org/jetbrains/k2js/translate/utils/BindingUtils.java,BindingUtils,getIteratorFunction,#BindingContext#JetExpression#,232

Before Change


    @NotNull
    public static ResolvedCall<FunctionDescriptor> getIteratorFunction(@NotNull BindingContext context,
            @NotNull JetExpression rangeExpression) {
        ResolvedCall<FunctionDescriptor> resolvedCall = context.get(BindingContext.LOOP_RANGE_ITERATOR_RESOLVED_CALL, rangeExpression);
        assert resolvedCall != null :
                message(rangeExpression, "Range expression must have a descriptor for iterator function");
        return resolvedCall;
    }

    @NotNull

After Change


    @NotNull
    public static ResolvedCall<FunctionDescriptor> getIteratorFunction(@NotNull BindingContext context,
            @NotNull JetExpression rangeExpression) {
        return BindingContextUtils.getNotNull(context, BindingContext.LOOP_RANGE_ITERATOR_RESOLVED_CALL, rangeExpression);
    }

    @NotNull